from mqttclient import clientMqtt,do_connect
import time
# MQTT服务器配置（已按你的信息填写）
MQTT_SERVER = "192.168.2.110"
MQTT_PORT = 1883
MQTT_USER = "user1"
MQTT_PASSWORD = "gyf520"
MQTT_CLIENT_ID = "esp32_client_1"  # 基于时间戳的唯一客户端ID
# WiFi配置（已按你的信息填写）
WIFI_SSID = "ESTKFB"
WIFI_PASSWORD = "estoom123"
mqtt_client = None
        
if __name__ == "__main__":
    do_connect(WIFI_SSID,WIFI_PASSWORD)
    clientMqtt(MQTT_CLIENT_ID,MQTT_SERVER,MQTT_PORT,MQTT_USER,MQTT_PASSWORD)
